﻿using System.Xml;
using UnityEngine;

namespace EditorFrameWork
{
    public class XMLGUILabel: XMLGUIBase
    {
        public string Text;

        public override void OnGUI(Rect position)
        {
            base.OnGUI(position);
            Text = GUI.TextField(position, Text);
        }

        public override void ParseXML(XmlElement xmlElement, XMLGUI roolXMLGUI)
        {
            base.ParseXML(xmlElement, roolXMLGUI);
            Text = xmlElement.InnerText;
        }

        protected override void OnDispose()
        {
            
        }
    }
}